<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVipPackageTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //vip套餐
        Schema::create('vip_package',function(Blueprint $table)
        {
            $table->increments('id');
            $table->string('name')->nullable()->comment('套餐名称');
            $table->integer('keep_time')->default(0)->comment('套餐时间（月份）');
            $table->decimal('free')->default(0)->comment('价格');
            $table->integer('clinch_num')->default(0)->comment('成交量');
            $table->integer('sort')->default(0)->comment('排序');
            $table->integer('status')->default(0)->comment('状态：0：关闭 1：开启');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
